package iscript.uiFramework.util.color
{
	
	/**
	 * 16进制颜色
	 */
	public class HEX
	{
		
		public function HEX()
		{
		
		}
		
		static public function NumbertoHex(value:Number):String
		{
			return value.toString(16);
		}
		
		static public function HexToRGB(value:uint):RGB
		{
			var rgb:RGB = new RGB();
			rgb.Red = (value >> 16) & 0xFF
			rgb.Green = (value >> 8) & 0xFF
			rgb.Blue = value & 0xFF
			return rgb;
		}
	}

}